package com.dsg.service.oil.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsg.dao.oil.DsgOilProductMapper;
import com.dsg.dao.oil.DsgOilPullMapper;
import com.dsg.entity.oil.DsgOilProduct;
import com.dsg.entity.oil.DsgOilPull;
import com.dsg.service.base.impl.BaseServiceImpl;
import com.dsg.service.oil.IDsgOilProductService;
import com.dsg.service.oil.IDsgOilPullService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 拉咭记录 服务实现类
 * </p>
 *
 * @author system
 * @since 2020-06-30
 */
@Service
public class DsgOilPullServiceImpl extends BaseServiceImpl<DsgOilPullMapper, DsgOilPull> implements IDsgOilPullService {

    @Autowired
    private DsgOilPullMapper dsgOilPullMapper;

    @Override
    public IPage<DsgOilPull> selectByList(Page<DsgOilPull> page, DsgOilPull dsgOilPull) {
        return page.setRecords(dsgOilPullMapper.selectByList(page, dsgOilPull));
    }
}
